package com.gegao.cashsys._01_simple_factory;

import com.gegao.cashsys._01_simple_factory.cash.CashFactory;
import com.gegao.cashsys._01_simple_factory.cash.CashSuper;

/**
 * Created by zhangzhanzhong on 2015/12/25.
 */
public class Main {
    public static void main(String[] args) {

        CashSuper nomal = CashFactory.createCashAccept("nomal");
        System.out.println(nomal.acceptCash(300d) + "");

        CashSuper rebase = CashFactory.createCashAccept("rebase");
        System.out.println(rebase.acceptCash(300d) + "");

        CashSuper _return = CashFactory.createCashAccept("return");
        System.out.println(_return.acceptCash(300d) + "");

    }
}
